package com.lanou.pianke.articlecomment.service;

import com.lanou.pianke.articlecomment.entity.ArticleComment;
import com.lanou.pianke.articlecomment.mapper.ArticleCommentMapper;
import com.lanou.pianke.articlecomment.mapper.ArticleReplyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleCommentService {

    @Autowired
    private ArticleCommentMapper articleCommentMapper;

    public List<ArticleComment> selectCommentInfo(String contentId) {
        return articleCommentMapper.selectCommentInfo(contentId);
    }


    public void insertArticleComment(ArticleComment articleComment) {
        articleCommentMapper.insertArticleComment(articleComment);
    }

    public List<ArticleComment> showAcomments(String contentId) {
        return articleCommentMapper.showAcomments(contentId);
    }

    public List<ArticleComment> showAll() {
        return articleCommentMapper.showAll();
    }
}
